package com.sdap2.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import com.sdap2.entity.enums.DeviceType;

@Data
public class DeviceDTO {
    @NotBlank(message = "设备名称不能为空")
    private String name;
    
    @NotBlank(message = "设备序列号不能为空")
    private String serialNumber;
    
    @NotNull(message = "设备类型不能为空")
    private DeviceType deviceType;
    
    private String unit;
    
    private String description;
    
    private String monitorUrl;
    
    @NotNull(message = "大棚ID不能为空")
    private Long greenhouseId;
} 